package com.spzx.order.mapper;

import java.util.List;
import com.spzx.order.domain.OrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单项信息Mapper接口
 *
 * @author atguigu
 * @date 2024-10-13
 */
public interface OrderItemMapper extends BaseMapper<OrderItem>
{

    /**
     * 根据用户id联表查询订单信息
     * @param userId
     * @return
     */
    List<OrderItem> selectByUserId(@Param("userId") Long userId , @Param("orderStatus") Integer orderStatus);
}
